import UIKit
import ProgressHUD

class MBAProgressHUD: NSObject {
    
    class func setupHUD() {

    }
    
    class func show() {
        ProgressHUD.animate()
    }
    
    class func showWithStatus(_ status: String) {
        ProgressHUD.animate(status)
    }
    
    class func showSuccessWithStatus(_ status: String) {
        ProgressHUD.succeed(status,delay: 1.5)
    }
    
    class func showErrorWithStatus(_ status: String) {
        ProgressHUD.failed(status)
    }
    
    class func dismiss() {
        DispatchQueue.main.async { () -> Void in
            ProgressHUD.dismiss()
        }
    }
}
